
/* Copyright (C) 2025 sangong All Rights Reserved.
 
 File Name: getdir.c
 Author   : sangong
 Creation Date: 2025-06-07
 INFO     :
*/
#include<stdio.h>
#include<sys/types.h>
#include<dirent.h>
#include<string.h>
int main(int argc,char *argv[])
{
     DIR *dp;
     struct dirent *ret;
     dp = opendir(".");
     while( ret = readdir(dp)){
       if(ret->d_name[0] == '.')
	       continue;
       if(strncmp(ret->d_name,"a.out",5)==0)
	       continue;
       if(strncmp(ret->d_name,"getdir.c",strlen("getdir.c")) == 0)
	       continue;
       printf("%s\n",ret->d_name);
     }
}
